package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Objects;

/**
    * 采购表
    */
public class SysPurchase extends BaseEntity {
    /**
    * 主键
    */
    private Long purchaseId;

    /**
    * 商品id
    */
    private Long skuId;

    /**
    * 商品名称
    */
    private String skuName;

    /**
    * 采购数量
    */
    private Long purchaseNum;

    /**
    * 单价
    */
    private BigDecimal purchasePrice;
    /**
     * 单价
     */
    private BigDecimal totalPrice;



    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    /**
    * 单位 (1瓶 2罐 3箱)
    */
    private String skuNuit;

    /**
    * 规格
    */
    private String skuNorms;

    /**
    * 显示顺序
    */
    private Integer orderNum;

    /**
    * 商品状态（0正常 1停用）
    */
    private String status;

    /**
    * 备注
    */
    private String remark;

    /**
    * 删除标志（0代表存在 2代表删除）
    */
    private String delFlag;

    /**
    * 创建者
    */
    private String createBy;

    /**
    * 创建时间
    */
    private Date createTime;

    /**
    * 更新者
    */
    private String updateBy;

    /**
    * 更新时间
    */
    private Date updateTime;

    public Long getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Long purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public Long getPurchaseNum() {
        return purchaseNum;
    }

    public void setPurchaseNum(Long purchaseNum) {
        this.purchaseNum = purchaseNum;
    }

    public BigDecimal getPurchasePrice() {
        return purchasePrice;
    }

    public void setPurchasePrice(BigDecimal purchasePrice) {
        this.purchasePrice = purchasePrice;
    }

    public String getSkuNuit() {
        return skuNuit;
    }

    public void setSkuNuit(String skuNuit) {
        this.skuNuit = skuNuit;
    }

    public String getSkuNorms() {
        return skuNorms;
    }

    public void setSkuNorms(String skuNorms) {
        this.skuNorms = skuNorms;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
    @Override
    public String toString() {
        return "SysPurchase{" +
                "purchaseId=" + purchaseId +
                ", skuId=" + skuId +
                ", skuName='" + skuName + '\'' +
                ", purchaseNum=" + purchaseNum +
                ", purchasePrice=" + purchasePrice +
                ", totalPrice=" + totalPrice +
                ", skuNuit='" + skuNuit + '\'' +
                ", skuNorms='" + skuNorms + '\'' +
                ", orderNum=" + orderNum +
                ", status='" + status + '\'' +
                ", remark='" + remark + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SysPurchase that = (SysPurchase) o;
        return Objects.equals(purchaseId, that.purchaseId) &&
                Objects.equals(skuId, that.skuId) &&
                Objects.equals(skuName, that.skuName) &&
                Objects.equals(purchaseNum, that.purchaseNum) &&
                Objects.equals(purchasePrice, that.purchasePrice) &&
                Objects.equals(totalPrice, that.totalPrice) &&
                Objects.equals(skuNuit, that.skuNuit) &&
                Objects.equals(skuNorms, that.skuNorms) &&
                Objects.equals(orderNum, that.orderNum) &&
                Objects.equals(status, that.status) &&
                Objects.equals(remark, that.remark) &&
                Objects.equals(delFlag, that.delFlag) &&
                Objects.equals(createBy, that.createBy) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateBy, that.updateBy) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(purchaseId, skuId, skuName, purchaseNum, purchasePrice, totalPrice, skuNuit, skuNorms, orderNum, status, remark, delFlag, createBy, createTime, updateBy, updateTime);
    }

}